module MainHelper
  module FormHelper
    # Returns an input tag of type "number".
    #
    # ==== Options
    # * Accepts same options as number_field_tag
    def number_field(object_name, method, options = {})
      ::ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("number", options)
    end
  end
end
